package masterjava.common.server.gwt.rpc;

import masterjava.common.shared.rpc.Request;
import masterjava.common.shared.rpc.Response;

public abstract class SimpleRpcHandlerImpl<RQ extends Request> extends RpcHandlerImpl<RQ, Response> {

    protected void handler(RQ request, Response response) {
        handler(request);
    }

    protected abstract void handler(RQ request);

    protected Response getResponse() throws IllegalAccessException, InstantiationException {
        return new Response();
    }
}
